/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BL;

import BE.Hallazgo;
import DAO.HallazgoDao;
import java.util.List;

/**
 *
 * @author CarLita
 */
public class HallazgoBl {
    HallazgoDao hallazgoDao;
    
    public HallazgoBl(){
        hallazgoDao = new HallazgoDao();
    }
    
    public List buscarPorCriterios(Hallazgo hallazgo){
        return hallazgoDao.buscarPorCriterios(hallazgo);
    }

    public boolean guardar(Hallazgo hallazgo) {
        return hallazgoDao.guardar(hallazgo);
    }

    public Hallazgo buscarPorId(int idHallazgo) {
        return hallazgoDao.buscarPorId(idHallazgo);
    }

    public boolean eliminar(Hallazgo hallazgo) {
        return hallazgoDao.eliminar(hallazgo);
    }
}
